#include "stdafx.h"

class Celko {
private:
	bool IsVowel(BYTE c);
	void CleanUp(BYTE *name, ULONG &length);
	bool StartsWith (BYTE *name, ULONG length, const char *prefix);
	void ReplacePrefix (BYTE *name, const char *prefix, ULONG &start);
	bool CheckNGram (BYTE *name, ULONG &start, ULONG length, const char *ngram);
	void ReplaceNGram (BYTE *name, const char *ngram, ULONG &start);
	void Summarize (BYTE *name, ULONG &length);
public:
	void Encode (BYTE *name, ULONG length);
	BYTE Result[5];
};
